﻿using Abp.Application.Navigation;
using Abp.Localization;

namespace Teleware.Newbe.Navigation.Web.Menus
{
    public class DefaultNavigationProvider : NavigationProvider
    {
        public override void SetNavigation(INavigationProviderContext context)
        {
            var localizableSourceName = "Teleware.Newbe.Navigation.Web";
            context.Manager.MainMenu
                .AddItem(new MenuItemDefinition(
                        "内容管理",
                        new LocalizableString("内容管理", localizableSourceName))
                    .AddItem(new MenuItemDefinition(
                        "部门",
                        new LocalizableString("部门", localizableSourceName),
                        url: "/Admin/DepartmentList"))
                    .AddItem(new MenuItemDefinition(
                        "链接",
                        new LocalizableString("链接", localizableSourceName),
                        url: "/Admin/HrefInfoList"))
                    .AddItem(new MenuItemDefinition(
                        "QQ",
                        new LocalizableString("QQ", localizableSourceName),
                        url: "/Admin/QqList"))
                    .AddItem(new MenuItemDefinition(
                        "QQ群",
                        new LocalizableString("QQ群", localizableSourceName),
                        url: "/Admin/QqGroupList"))
                    .AddItem(new MenuItemDefinition(
                        "标识",
                        new LocalizableString("标识", localizableSourceName),
                        url: "/Admin/InfoTagsList")))
                .AddItem(new MenuItemDefinition(
                        "用户与角色",
                        new LocalizableString("用户与角色", localizableSourceName))
                    .AddItem(new MenuItemDefinition(
                        "用户",
                        new LocalizableString("用户", localizableSourceName),
                        url: "/Admin/UserList")))
                .AddItem(new MenuItemDefinition(
                        "设置",
                        new LocalizableString("设置", localizableSourceName))
                    .AddItem(new MenuItemDefinition(
                        "百度一下",
                        new LocalizableString("百度一下", localizableSourceName))));
        }
    }
}
